<template>
	<view class="content">
		<image class="image-bg" src="/static//01.jpg" />
		<image class="logo" src="/static/logo.png"></image>
		<view class="text-area">
			<text class="title">{{title}}</text>
		</view>
		<!-- 		<view>
			<rich-text-editor v-model="richText" @input="input" style="height: 70vh;"></rich-text-editor>
		</view> -->
	<button @click="btnEditor">跳转到编辑器</button>	
	</view>
</template>

<script>
	// import richTextEditor from '../../editor/editor.vue'
	export default {
		components: {
			// richTextEditor
		},
		data() {
			return {
				title: 'Hello',
				statusBarHeight: 20,
				richText: '',
			}
		},
		onLoad() {

		},
		methods: {
			input(e) {
				console.log('这里是初始内容.................', e)
				this.ruleForm.content = e
			},
			btnEditor(){
				uni.navigateTo({
					url:"/pages/edit/index"
				})
			}
		},
	}
</script>

<style>
	.content {
		background-color: #ddd;
		height: 520rpx;
		position: relative;
		z-index: 100;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.image-bg {
		position: absolute;
		z-index: -1;
		left: 0;
		right: 0;
		top: 0;
		width: 50px;
		height: 50px;
	}


	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
</style>